/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.us.es.util;

import java.util.Set;
import java.util.TreeSet;

/**
 *
 * @author mruiz
 */
public class Utils {

    public static <T> Set<T> complementary_union(Set<T> setA, Set<T> setB) {
        Set<T> tmp = new TreeSet<T>();
        for (T x : setA) {
            if (!setB.contains(x)) {
                tmp.add(x);
            }
        }
        return tmp;
    }
}
